﻿<Window x:Class="Aeon.Emulator.Launcher.MountWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:local="clr-namespace:Aeon.Emulator.Launcher"
        Name="root" Title="Drive Settings" Height="300" Width="300"
        ShowInTaskbar="False" Icon="Aeon.ico">
    <Grid Margin="5">
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <local:DiskMounter ItemsSource="{Binding Drives, ElementName=root}" />
        <StackPanel Orientation="Horizontal" Grid.Row="1" HorizontalAlignment="Right" Margin="0,5,0,0">
            <Button Content="OK" Width="60" Height="21" Margin="0,0,5,0" IsDefault="True" Click="OKButton_Click">
                <Button.Style>
                    <Style TargetType="{x:Type Button}">
                        <Style.Triggers>
                            <DataTrigger Binding="{Binding Drives.Count, ElementName=root}" Value="0">
                                <Setter Property="IsEnabled" Value="False" />
                            </DataTrigger>
                        </Style.Triggers>
                    </Style>
                </Button.Style>
            </Button>
            <Button Content="Cancel" Width="60" Height="21" IsCancel="True" />
        </StackPanel>
    </Grid>
</Window>
